package fun.hijklmn.magic.idGenerator.common.pojo;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * DB WorkerID Assigner for UID Generator
 * </p>
 *
 * @author zsl
 * @since 2021-07-12
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
  public class WorkerNode implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * auto increment id
     */
      private Long id;

      /**
     * host name
     */
    private String hostName;

      /**
     * port
     */
    private String port;

      /**
     * node type: ACTUAL or CONTAINER
     */
    private Integer type;

      /**
     * launch date
     */
    private LocalDate launchDate;

      /**
     * modified time
     */
    private LocalDateTime modified;

      /**
     * created time
     */
    private LocalDateTime created;


}
